  let sum = arr.reduce(function (prev, cur) {
    return prev + cur
  })
  for (let i; i < arr.length; i++) {
  }